// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import ele from "./element/index"
import 'element-ui/lib/theme-chalk/index.css';
import {MessageBox,Message} from "element-ui"
Vue.config.productionTip = false

Object.keys(ele).forEach(item => {
  Vue.use(ele[item])
  Vue.prototype.$msgbox = MessageBox;
  Vue.prototype.$alert = MessageBox.alert;
  Vue.prototype.$confirm = MessageBox.confirm;
  Vue.prototype.$prompt = MessageBox.prompt;
  Vue.prototype.$message = Message;
})
// Vue.filter(timer,(val)=>{
      
// })
/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  components: { App },
  template: '<App/>'
})
